import { http } from '@/utils/request.js'

const customerInformationService = {
  list: (data) => {
    return http.get('/system/customerInformation/list', data)
  },
  getDetail: (customerInformationId) => {
    return http.get(`/system/customerInformation/${customerInformationId}`)
  },
  add: (data) => {
    return http.post('/system/customerInformation', data)
  },
  update: (data) => {
    return http.put(`/system/customerInformation`, data)
  },
  delete: (customerInformationId) => {
    return http.delete(`/system/customerInformation/${customerInformationId}`)
  },
  getQueryList: (data) => {
    return http.get('/system/customerInformation/queryList', data)
  },
}
export default customerInformationService
